import boto3

client = boto3.client('s3')
response = client.list_objects(Bucket='v2-data-production', Prefix='SpiderOutput/core-products/2021-12-05/CoreProductsBestSellers/')
index = 1
for obj in response['Contents']:
    print(index)
    index = index + 1

print('total:', index)
